package com.caolei1992.web.controller.account;

import com.caolei1992.api.business.account.service.IAccountService;
import com.caolei1992.web.controller.BaseController;
import com.caolei1992.web.vo.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: caolei
 * @Despriction:
 * @Date:Created in 2019/12/9 11:21
 * @Modify By:
 */
@RestController
@RequestMapping("/api/account")
public class AccountController extends BaseController {
    @Reference
    private IAccountService accountService;

    @ApiOperation(value = "根据用户id获取用户数据")
    @RequestMapping("findById")
    public AjaxResult findById() {
        return AjaxResult.success(accountService.findById("00017ac2484445a18bb9a799955faa9e"));
    }

}
